:: (a -> IO b) -> DirTree a -> IO (DirTree b) -package:ghc package:rio
Map each element of a structure to an action, evaluate these actions
from left to right, and collect the results. For a version that
ignores the results see
traverse_.
Map each element of a structure to a monadic action, evaluate these
actions from left to right, and collect the results. For a version
that ignores the results see
mapM_.
O(n) Apply the monadic action to all elements of the vector,
yielding a vector of results
forM is
mapM with its arguments flipped. For a version
that ignores the results see
forM_.